package com.kilman.logger.log.control;


public class ManagedLog {

    private LogLinesController logLinesController;
    
    private String name;
    private String host;
    private String username; 
    private String password;
    private String path;
    
    public ManagedLog() { }
    
    public ManagedLog(String name, String path, String host, String username, String password,
            LogLinesController logLinesController) {
        this.logLinesController = logLinesController;
        this.name = name;
        this.path = path;
        this.host = host;
        this.username = username;
        this.password = password;
    }
    
    public ManagedLog(String name, String path, String host, String username, String password) {
        this(name,path,host,username,password, new DefaultLogLinesController());
    }
    
    public String getHost() {
        return host;
    }
    public void setHost(String host) {
        this.host = host;
    }
    public String getUsername() {
        return username;
    }
    public void setUsername(String username) {
        this.username = username;
    }
    public String getPassword() {
        return password;
    }
    public void setPassword(String password) {
        this.password = password;
    }
    public String getPath() {
        return path;
    }
    public void setPath(String path) {
        this.path = path;
    }
    public void setName(String name) {
        this.name = name;
    }
    public String getName() {
        return name;
    }

    public void setLogLinesController(LogLinesController logLinesController) {
        this.logLinesController = logLinesController;
    }

    public LogLinesController getLogLinesController() {
        return logLinesController;
    }
    
    public String generateOutput(LogLines logLines) {
        return logLinesController.generateOutput(logLines);
    }
}
